var ResourceLoader = function () {
    this.loaders = {};
};

ResourceLoader.prototype.addLoader = function (name, loader) {
    this.loaders[name] = loader;
};

ResourceLoader.prototype.load = function (name, id, callback) {
    return this.loaders[name].load(id, callback);
};